package webdev.utils;

public class IntegerUtil {

	/**This method is used to check the string is in integer
	 * @param integer
	 * @return This return true if the string can be converted to integer else can not
	 * @author thangtc
	 */
	public static boolean isInteger(String integer) {
        try {
            Integer.parseInt(integer);
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }
}
